home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 4
/
United Public Domain Gold 4.iso
/
scope
/
sc168.dms
/
sc168.adf
/
AsmMacros
/
AM_02
/
Execute.i
< prev
next >
Wrap
Text File
|
1990-11-13
|
1KB
|
54 lines
NOLIST
Execute MACRO ; 14 Sept 88
*------------------------------; Start of Execute macro.
MOVE.L #NullString,D1 ; Make D1 point to a null command string.
NOLIST
IFND NullString
LIST
SECTION DataSection,DATA
NullString:
DC.B 0,0
SECTION CodeSection,CODE
NOLIST
ENDC
IFEQ NARG-2 ; If the output file handle is specified, then
LIST
; Make D3 indicate the output file handle.
NOLIST
IFEQ ReEntrant-1
LIST
MOVE.L \2(A5),D3
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L \2,D3
NOLIST
ENDC
ENDC
IFEQ NARG-1 ; If no output file handle is specified, then
LIST
CLR.L D3 ; Clear D3 so that output will go to the
; current window.
NOLIST
ENDC
LIST
; Put the command file handle in D2.
NOLIST
IFEQ ReEntrant-1
LIST
MOVE.L \1(A5),D2
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L \1,D2
NOLIST
ENDC
LIST
CallLib Execute,dos ; Call Execute.
TST.L D0 ; Make the zero flag indicate failure.
*------------------------------; End of Execute macro.
ENDM
LIST